﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;

namespace Gao.Poker.Domain
{
    public class Member
    {
        public Member()
        {
            Birthday = DateTime.Now;
            OpenCardDate = DateTime.Now;
        }
   

        [Key]
        public int ID { get; set; }
        /// <summary>
        /// 卡号
        /// </summary>
        [StringLength(20)]
        [Required]
        public String CardNo { get; set; }
        /// <summary>
        /// 身份证号
        /// </summary>
        [StringLength(20)]
        public String IdNo { get; set; }
        /// <summary>
        /// 姓名
        /// </summary>
        [StringLength(30)]
        [Required]
        public String Name { get; set; }
        /// <summary>
        /// 通信地址
        /// </summary>
        [StringLength(200)]
        public String Address { get; set; }
        /// <summary>
        /// 生日
        /// </summary>
        public DateTime Birthday { get; set; }
        /// <summary>
        /// 电话
        /// </summary>
        [StringLength(20)]
        public String Telephone { get; set; }
        /// <summary>
        /// Email
        /// </summary>
        [StringLength(50)]
        public String Email { get; set; }
        /// <summary>
        /// 消费金额
        /// </summary>
        public decimal ConsumeMoney { get; set; }
        /// <summary>
        /// 积分
        /// </summary>
        public int Points { get; set; }
        /// <summary>
        /// 开卡日期
        /// </summary>
        public DateTime OpenCardDate { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [StringLength(200)]
        public String Remark { get; set; }

        /// <summary>
        /// 会员状态 0 正常 1 停用
        /// </summary>
        public int State { get; set; }
    }
}
